package com.xh.core.bean;

import com.google.common.collect.ImmutableMap;
import com.xh.core.callback.ExportRenderCallback;
import lombok.Data;

/*
 * @Author daiwei
 * @Description 通用导出列定义类
 * @Date 2018/8/11 10:17
 **/
@Data
public class XhExportHeaderBean {

    private String displayName;
    private String dateFormat="";
    private ImmutableMap constants;
    private ExportRenderCallback renderCallback;

    public XhExportHeaderBean( String displayName) {
        this.displayName = displayName;
    }

    public XhExportHeaderBean(String displayName, ImmutableMap constants) {
        this.displayName = displayName;
        this.constants = constants;
    }

    public XhExportHeaderBean(String displayName, String dateFormat) {
        this.displayName = displayName;
        this.dateFormat = dateFormat;
    }

    public XhExportHeaderBean(String displayName, ExportRenderCallback renderCallback) {
        this.displayName = displayName;
        this.renderCallback = renderCallback;
    }

}
